package com.xue566.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author: Wuzh
 * @Description: 记上课(考勤)表
 * @Data:
 */
@Data
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式
@TableName(value = "attendance_info")
public class AttendanceEntity extends BaseEntity {

    @TableId(value = "attendanceId", type = IdType.INPUT)
    private String attendanceId;
    @TableField(value = "stuId")
    private String stuId;
    @TableField(value = "classId")
    private String classId;
    @TableField(value = "attendanceState")
    private int attendanceState;
    @TableField(value = "attendanceTime")
    private String attendanceTime;
    @TableField(value = "userId")
    private String userId;
    @TableField(value = "isUsed")
    private int isUsed;

    public String getAttendanceId () {
        return attendanceId;
    }

    public void setAttendanceId (String attendanceId) {
        this.attendanceId = attendanceId;
    }

    public String getStuId () {
        return stuId;
    }

    public void setStuId (String stuId) {
        this.stuId = stuId;
    }

    public String getClassId () {
        return classId;
    }

    public void setClassId (String classId) {
        this.classId = classId;
    }

    public int getAttendanceState () {
        return attendanceState;
    }

    public void setAttendanceState (int attendanceState) {
        this.attendanceState = attendanceState;
    }

    public String getAttendanceTime () {
        return attendanceTime;
    }

    public void setAttendanceTime (String attendanceTime) {
        this.attendanceTime = attendanceTime;
    }

    public String getUserId () {
        return userId;
    }

    public void setUserId (String userId) {
        this.userId = userId;
    }

    public int getIsUsed () {
        return isUsed;
    }

    public void setIsUsed (int isUsed) {
        this.isUsed = isUsed;
    }
}
